<form name="fr1" id="fr1" method="post" action="<?= base_url(); ?>product/SearchItem">
    <span class="tk">Tìm kiếm</span>
    <span class="opt">
        <select name="categories" id="categories">
            <option value="" >Tất cả</option>
            <? if ($pname): ?>
                <? foreach ($pname as $rows): ?>
                    <option value="<?= $rows->PID ?>"><?= $rows->PName ?></option>
                <? endforeach; ?>
            <? endif; ?>        
        </select>
    </span>
    <span class="text"><input type="text" name="txtsearch" id="txtsearch" placeholder="Nhập từ khóa tìm kiếm..." value="" style="padding-left: 5px;"/></span>
    <span class="btn"><input type="submit" name="search" id="search" value=""/></span>
</form>